package cn.techaction.service;

import java.util.List;

import cn.techaction.common.SverResponse;
import cn.techaction.pojo.ActionAddress;

public interface ActionAddressService {
    /**
     * 新增收件人信息
     * @param address
     * @return
     */
	public SverResponse<String> addAddress(ActionAddress address);
    /**
     * 更新收件人信息
     * @param address
     * @return
     */
	public SverResponse<String> updateAddress(ActionAddress address);
	public SverResponse<List<ActionAddress>> findAddrsByUserId(Integer userId);
	public SverResponse<String> delAddress(Integer userId, Integer id);
	/**
	 * 更新默认地址
	 * @param id
	 * @param id2
	 * @return
	 */
	public SverResponse<String> updateaddrDefaultStatus(Integer userId, Integer id);
	
	public SverResponse<ActionAddress> findAddrById(Integer addrid);

}
